package com.itsm.facade.entity.user;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色权限管理
 * </p>
 *
 * @author 张权
 * @since 2017-09-28
 */
@TableName("sys_role_right")
public class RoleRight extends Model<RoleRight> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("rr_id")
	private Long rrId;
    /**
     * 角色主键
     */
	@TableField("role_id")
	private Long roleId;
    /**
     * 权限主键
     */
	@TableField("right_id")
	private Long rightId;
    /**
     * 是否锁定(默认为0正常，1锁定)
     */
	@TableField("is_lock")
	private Integer isLock;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 是否为系统内置（默认为0：否；1：是）
     */
	@TableField("is_sys")
	private Integer isSys;


	public Long getRrId() {
		return rrId;
	}

	public void setRrId(Long rrId) {
		this.rrId = rrId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getRightId() {
		return rightId;
	}

	public void setRightId(Long rightId) {
		this.rightId = rightId;
	}

	public Integer getIsLock() {
		return isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsSys() {
		return isSys;
	}

	public void setIsSys(Integer isSys) {
		this.isSys = isSys;
	}

	@Override
	protected Serializable pkVal() {
		return this.rrId;
	}

	@Override
	public String toString() {
		return "RoleRight{" +
			"rrId=" + rrId +
			", roleId=" + roleId +
			", rightId=" + rightId +
			", isLock=" + isLock +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", isSys=" + isSys +
			"}";
	}
}
